package com.spring.iosservice.web.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.spring.iosservice.web.model.*;

/**
 * Created by wojunyu on 2015/7/26.
 */
public interface IosQuestMapper {

    List<TeacherCourse> getTeacherCousre(HashMap<String, Object> hm);
    
    List<TeacherCareClass> getTeacherCareClass(HashMap<String, Object> hm);
    
    List<StudentList> getStudenetList(Map<String, Object> hm);
    List<StudentList> getStudenetListByClassID(Map<String, Object> hm);
    
    List<StudenetAndComment>  getStudenetAndCommentList(String course_open_detail_id);
    
    List<CourseBooks> getCourseBooks(String course_id);
    //List<BabyCourseSpec> getBabyCourseSpec(HashMap hm );
    List<BabyCourseVideo> getBabyCourseVideo(HashMap<String, Object> hm );


    List<TeacherVideo> getTeacherVideo(String course_spec_id );
    List<CourseImage> getCourseImage(String course_image_id );
    void commitComments(HashMap<String, Object> hm);
    int commitCourseImageComments(HashMap<String, Object> hm);
    List<CheckUser> checkUser(HashMap<String, Object> hm  );
    int insertVideos(Map<String, Object> m);
    int insertBabyVideos(Map<String, Object> m);
    
    int insertCourseImages(Map<String, Object> m);
    int insertBabyCourseImages(Map<String, Object> m);
    
    int updateTeacher(HashMap<String,Object> hm);
    
    String updateTeacherImageSrcGetOrgan(String c_user_id);
    
    
    int updateTeacherImageSrc(HashMap<String,Object> hm);
    
    String updateTeacherPasswordGetOldPassword(String t_user_id);
    
    int updateTeacherPassword(HashMap<String,Object> hm);
    int checkFileToken(Map<String,Object> hm);
    int checkImageFileToken(Map<String,Object> hm);
    
    int updateVideoPhoto(Map<String,Object> m);
    String queryVideosPhoto(String id);
    
    int teacherCommentBaby(HashMap<String,Object> hm);
    int teacherCommentCourseCheckId(HashMap<String,Object> hm);
    int teacherCommentCourse(HashMap<String,Object> hm);
    
    List<TeacherCommentBaby> getTeacherCommentBabyList(HashMap<String,Object> hm);
    List<TeacherCommentCourse> getTeacherCommentCourseList(HashMap<String,Object> hm);
    List<ParentCommentCourse> getParentCommentCourseList(HashMap<String,Object> hm);
	int insertTeacherImageSrc(HashMap<String, Object> hm);
	
	int insertJournal(HashMap<String, Object> hm);
	int insertJournalPhoto(HashMap<String, Object> hm);
	
	HashMap<String, Object> getVideoByID(String videoID);
	int insertBaseVidoe(HashMap<String, Object> hm);
	int insertJournalVideo(HashMap<String, Object> hm);
	List<StudentList> getProStudenetList(HashMap<String, Object> hm);
	List<StudentList> getCareStudenetList(HashMap<String, Object> hm);

}
